package com.dealglobe.feeder.bvd.query;

import com.bvdep.webservices.ArrayOfSelectionParameter;

public class BvdQuery {
    
    public static BvdQuery newGetCommonCompanyDataByRegion(String regionCode) {
        BvdQueryBuilder builder = new BvdQueryBuilder();
        builder
          .selectionId("DNOrbisNeo:bvd.OrbisNeo.Search.Companies.SearchStepDictionary+WorldRegions")
          .dataQuery("company-common.getdata")
          .addParammeter("Id", regionCode);
        
        return builder.build();
    }
    
    public static BvdQuery newGetFinancialCompanyDataByRegion(String regionCode) {
        BvdQueryBuilder builder = new BvdQueryBuilder();
        builder
          .selectionId("DNOrbisNeo:bvd.OrbisNeo.Search.Companies.SearchStepDictionary+WorldRegions")
          .dataQuery("ebitda.getdata")
          .addParammeter("Id", regionCode);
        
        return builder.build();
    }
    
    private final String getData;
    private final ArrayOfSelectionParameter parammeters;
    private final String selectionId;
    public BvdQuery(String getData, String selectionId, ArrayOfSelectionParameter parammeters) {
        this.getData = getData;
        this.parammeters = parammeters;
        this.selectionId = selectionId;
    }
    public String getGetData() {
        return getData;
    }
    public ArrayOfSelectionParameter getParammeters() {
        return parammeters;
    }
    public String getSelectionId() {
        return selectionId;
    }
    
}
